package com.example.campustalent.adapter

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.campustalent.R
import com.example.campustalent.bean.ContentBean

/**
 *@author: wangtianxiong
 *@time: 2022/3/16
 *@describe:
 *
 */

class MyContentAdapter : BaseQuickAdapter<ContentBean, BaseViewHolder>(R.layout.item_content) {
    override fun convert(helper: BaseViewHolder, item: ContentBean) {
        helper.setText(R.id.tv_content, item.content)
        Glide.with(mContext).load(item.imageUrl).into(helper.getView(R.id.iv_image))
    }
}